#include "monster.h"
#include<iostream>
using namespace std;
bool Monster::judgeDeath() {
    
    if(isDeath == false) {
        if(Blood <= 0) isDeath = true;
    }

    return isDeath;
}

void Monster::showDetail() {
    cout<<"Attack: "<<getAttack()<<'\t'<<"Blood: "<<getBlood()<<'\t'<<"Experience: "<<getExperience()<<endl;
}

void Monster::beAttack(int injured) {
    Blood -= injured;
    judgeDeath();
}

void Shooter1::showDetail() {
    cout<<"Shooter1:"<<endl;
    AbstructShooter::showDetail();
}

void Shooter2::showDetail() {
    cout<<"Shooter2:"<<endl;;
    AbstructShooter::showDetail();
}

void Shooter1::kill() {
    this->~Shooter1();
}

void Shooter2::kill() {
    this->~Shooter2();
}

void Master1::showDetail() {
    cout<<"Master1:"<<endl;
    AbstructMaster::showDetail();
}

void Master2::showDetail() {
    cout<<"Master2:"<<endl;;
    AbstructMaster::showDetail();
}

void Master1::kill() {
    this->~Master1();
}

void Master2::kill() {
    this->~Master2();
}

void Meatshield1::showDetail() {
    cout<<"Meatshield1:"<<endl;
    AbstructMeatshield::showDetail();
}

void Meatshield2::showDetail() {
    cout<<"Meatshield2:"<<endl;;
    AbstructMeatshield::showDetail();
}

void Meatshield1::kill() {
    this->~Meatshield1();
}

void Meatshield2::kill() {
    this->~Meatshield2();
}